<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>

<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>

<%
        request.setAttribute("nombrePagina", "Transferencia / Recepcion de dinero");
%>


<f:view>

    <%@include file="/WEB-INF/jspf/header.jspf" %>

    <h:messages id="messages" styleClass="messages_content" layout="table" errorClass="error" warnClass="warn" infoClass="info"/>

    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <link type="text/css" rel="stylesheet" href="/finsys/style.css" media="screen"/>
            <title>Gesti&oacute;n de Cr&eacute;ditos</title>
        </head>
        <body>
            <h1>Gesti&oacute;n de Letras</h1>
            <h2>Desembolso de Letras</h2>
            <h:form>
                <fieldset>
                    <legend>Desembolso de Letras</legend>
                    <h:panelGrid columns="2">
                        <h:panelGrid columns="2">
                            <h:outputLabel value="Nro.Letra:" for="txtNroLetra" />
                            <h:inputText id="txtNroLetra" styleClass="inputs" readonly="true"/>

                            <h:outputLabel value="Titular" for="txtTitular" />
                            <h:inputText id="txtTitular" styleClass="inputs" readonly="true"/>

                            <h:outputLabel value="Monto:" for="txtMonto" />
                            <h:inputText id="txtMonto" styleClass="inputs" readonly="true" />

                            <h:outputLabel value="Interes:" for="txtInteres"/>
                            <h:inputText id="txtInteres" styleClass="inputs" readonly="true"/>

                            <h:outputLabel value="Nro.Cuotas:" for="txtNroCuotas"/>
                            <h:inputText id="txtNroCuotas" styleClass="inputs" readonly="true"/>

                            <h:outputLabel value="Periodo Pago:" for="txtPeriodo"/>
                            <h:inputText id="txtPeriodo" styleClass="inputs" readonly="true"/>
                        </h:panelGrid>

                        <h:panelGrid columns="1">
                            <h:outputLabel value="Detalle de la Operacion:" />

                            <h:panelGrid columns="2" rendered="#{!LetrasController.modalidad}">
                                <h:outputLabel value="Monto a Desembolsar" />
                                <h:inputText id="txtMontoCuenta" styleClass="inputs"/>

                                <h:outputLabel value="# Cuenta:" />
                                <h:inputText id="txtNroCuenta" styleClass="inputs"/>
                            </h:panelGrid>
                            
                            <h:panelGrid columns="2" rendered="#{LetrasController.modalidad}">
                                <h:outputLabel value="Monto a Desembolsar" />
                                <h:inputText id="txtMontoEfectivo" styleClass="inputs"/>
                            </h:panelGrid>

                            <h:panelGroup />
                            <h:panelGroup>
                                <h:commandButton value="Continuar" action="volver" />
                                <h:commandButton value="Cancelar" action="volver" />
                            </h:panelGroup>
                        </h:panelGrid>

                    </h:panelGrid>
                </fieldset>
            </h:form>
        </body>
    </html>

    <%@include file="/WEB-INF/jspf/footer.jspf" %>

</f:view>